//所在目录名称
console.log(__dirname+'\\test111');
//所在目录的文件名
console.log(__filename);


//path路径拼接
const path = require('path');
let patch  = path.join(__dirname,'home','index');

console.log(patch);


//系统平台
console.log(path.posix);
console.log(path.win32);